package yl.hs.bmipfull.pojo.system;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;
import yl.hs.bmipfull.pojo.IParent;

/**
 * 作用:  组织架构信息实体类<br/>
 * 创建时间: 2021年05月12日 11时45分17秒 <br/>
 *
 * @author 张凯
 */
@DBTable(disName = "组织架构信息", mapCode = "organization_info")
public class OrganizationInfoEntity extends BaseEntity implements IParent {

    /**
     * 主键
     */
    @Nullable
    private Long id;
    /**
     * 组织编号
     */
    @DBField(disName = "组织架构编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "ORGA")

    private String sn;
    /**
     * 组织全称
     */
    @DBField(disName = "组织全称", mapCode = "fullName")
    private String fullName;
    /**
     * 组织简称
     */
    @DBField(disName = "组织简称", mapCode = "shortName")
    private String shortName;
    /**
     * 组织代码
     */
    @DBField(disName = "组织代码", mapCode = "enCode")
    private String enCode;
    /**
     * 组织名称拼音
     */
    private String fullNamePY;
    /**
     * 组织简称拼音
     */

    private String shortNamePY;
    /**
     * 信息等级
     */
    @DBField(disName = "信息等级", mapCode = "layer")
    private int layer;
    /**
     * 父级编号
     */
    @DBField(disName = "父级编号", mapCode = "parentSN")
    private String parentSN;
    /**
     * 父级代码
     */
    @DBField(disName = "父级代码", mapCode = "parentCode")
    private String parentCode;
    /**
     * 组织类型
     */
    @DBField(disName = "组织类型", mapCode = "organizationType")
    private Short organizationType;
    /**
     * 组织地址
     */
    @DBField(disName = "组织地址", mapCode = "address")
    private String address;
    /**
     * 组织地址拼音
     */
    private String addressPY;
    /**
     * 组织定位
     */
    @DBField(disName = "组织定位", mapCode = "location")
    private String location;
    /**
     * 组织备注
     */
    @DBField(disName = "组织备注", mapCode = "remark")
    private String remark;
    /**
     * 排序代码
     */
    @DBField(disName = "排序代码", mapCode = "sortCode")
    private String sortCode;
    /**
     * 组织状态
     * -1 删除
     * 0 正常
     */
    @DBField(disName = "组织状态", mapCode = "state")
    private short state;

    @DBField(disName = "是否生产", mapCode = "production")
    private boolean production;

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getFullName() {
        return this.fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getShortName() {
        return this.shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getEnCode() {
        return this.enCode;
    }

    public void setEnCode(String enCode) {
        this.enCode = enCode;
    }

    public String getFullNamePY() {
        return this.fullNamePY;
    }

    public void setFullNamePY(String fullNamePY) {
        this.fullNamePY = fullNamePY;
    }

    public String getShortNamePY() {
        return this.shortNamePY;
    }

    public void setShortNamePY(String shortNamePY) {
        this.shortNamePY = shortNamePY;
    }

    public int getLayer() {
        return this.layer;
    }

    public void setLayer(int layer) {
        this.layer = layer;
    }

    public String getParentSN() {
        return this.parentSN;
    }

    public void setParentSN(String parentSN) {
        this.parentSN = parentSN;
    }

    public String getParentCode() {
        return this.parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public Short getOrganizationType() {
        return this.organizationType;
    }

    public void setOrganizationType(Short organizationType) {
        this.organizationType = organizationType;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddressPY() {
        return this.addressPY;
    }

    public void setAddressPY(String addressPY) {
        this.addressPY = addressPY;
    }

    public String getLocation() {
        return this.location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSortCode() {
        return this.sortCode;
    }

    public void setSortCode(String sortCode) {
        this.sortCode = sortCode;
    }

    public short getState() {
        return this.state;
    }

    public void setState(short state) {
        this.state = state;
    }

    public boolean isProduction() {
        return production;
    }

    public void setProduction(boolean production) {
        this.production = production;
    }
}